﻿package com.bizmlib.utils
{
	public function formatNumberToString(value:Number, delimiter:String = ".", precision:Number = 2):String
	{
		var integerPart:Number = Math.floor(value);
		var decimalPart:Number = Math.round((value * Math.pow(10, precision)) % Math.pow(10, precision));
		return String(integerPart) + delimiter + addCharsToString(String(decimalPart), "0", precision, true);
	}
}